<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class SaleRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Sale\Controllers', 'prefix'=>'sale'], function ($router) {

            $router->any('company-all', 'CompanyController@index');
            $router->any('company-add', 'CompanyController@add');
            $router->any('company-list', 'CompanyController@lists');
            $router->any('product-list', 'ProductController@lists');
            //$router->any('company-edit', 'CompanyController@edit');
            //$router->any('company-confirm', 'CompanyController@confirm');
            $router->any('company-detail', 'CompanyController@detail');
            $router->any('company-orderFirst', 'CompanyController@orderFirst');
            $router->any('company-orderList', 'CompanyController@orderList');
            $router->any('company-delete', 'CompanyController@del');
            $router->any('company-search', 'CompanyController@search');
            $router->any('customer-list', 'CustomerController@lists');
            $router->any('customer-edit', 'CustomerController@edit');
            $router->any('customer-confirm', 'CustomerController@confirm');
            $router->any('customer-detail', 'CustomerController@detail');
            $router->any('customer-delete', 'CustomerController@del');
            $router->any('customer-search', 'CustomerController@search');
            $router->any('customer-orderFirst', 'CustomerController@orderFirst');
            $router->any('customer-orderList', 'CustomerController@orderList');

        });
    }
}